//
//  WDCollectionCell.m
//  Zhihuijinfu
//
//  Created by 王笛 on 2016/12/28.
//  Copyright © 2016年 王笛. All rights reserved.
//

#import "WDCollectionCell.h"
#import "WDMaterialList.h"

@interface WDCollectionCell ()
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
@property (weak, nonatomic) IBOutlet UIImageView *imageView;

@end

@implementation WDCollectionCell

- (void)setMaterial:(WDMaterialList *)material
{
    _material = material;
    
    self.nameLabel.text = material.name;
    [self.imageView sd_setImageWithURL:[NSURL URLWithString:material.small_image_url] placeholderImage:WDDefaultImage];
}

@end
